package com.zhaozhaonews.admin.controller;


import com.zhaozhaonews.admin.service.AdUserService;
import com.zhaozhaonews.model.admin.dto.AdLoginDto;
import com.zhaozhaonews.model.common.dto.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author WanJl
 * @version 1.0
 * @title AdUserLoginController
 * @description
 * @create 2025/2/20
 */
@RestController
@RequestMapping("/login")
public class AdUserLoginController {
    @Resource
    private AdUserService adUserService;
    @PostMapping("/in")
    public ResponseResult login(AdLoginDto adLoginDto) {
        return adUserService.login(adLoginDto);
    }
}
